
export const formData = {
    getItemUrl: 'merchant/cate/getItemById/',
    updateUrl: 'merchant/cate/updateAction/',
    createUrl: 'merchant/cate/createAction/',
    formKey: 'cate',
    updateFieldList: [
        { formType: 'Record', showName: '上级分类', key: 'parent', width: 5, label: 'name', value: 'id',},
        { formType: 'Input', showName: '名称', key: 'name', width: 5, required: true },
        { formType: 'Input', showName: '关键字', key: 'key', width: 5, roles: ['admin'] },
        { formType: 'Input', showName: '排序', key: 'sort', width: 5 },
    ],
    detailFieldList: [
        { formType: 'Input', showName: '上级分类', key: 'parent', width: 5 },
        { formType: 'Input', showName: '名称', key: 'name', width: 5 },
        { formType: 'Input', showName: '排序', key: 'sort', width: 5 },
        { formType: 'DatePicker', showName: '创建时间', key: 'createTime', width: 5, type: 'datetime', format: 'yyyy-MM-dd', valueFormat: 'yyyy-MM-dd' }
    ],
    options: {
        status: [
            {value: '1', label: "正常"},
            {value: '2', label: "异常"}
        ],
        isShow: [
            {value: 1, label: "是"},
            {value: 0, label: "否"}
        ]
    },
    dicts: {
        status: {
            '1': "正常",
            '2': "异常"
        }
    }
}
